package edu.fdzc.learn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import edu.fdzc.learn.entity.Exam;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 考试表 Mapper 接口
 * </p>
 */
public interface ExamMapper extends BaseMapper<Exam> {
    @Select("SELECT title FROM `exams` WHERE id = #{examId}")
    String getTitleById(Long examId);

    Exam getExamById(Long examId);
}